<?php
class Core_Exception  extends Exception
{
    public function  __construct($message = '', $code = null, $previous = null)
    {

        Core_Logger::log(get_class().': '.$message, '/tmp/error.log');
        parent::__construct($message, $code, $previous);
    }
}
